package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.RoutinePathologySampling;
import com.zhijian.medical.entity.vo.request.RoutinePathologySamplingSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.RoutinePathologySamplingSearchVo;
import com.zhijian.medical.entity.vo.response.RoutinePathologySamplingVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 常规病理取材 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-06-10 22:25:01
 */
public interface RoutinePathologySamplingService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    RoutinePathologySampling selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    RoutinePathologySamplingVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 按照主键批量删除
     *
     * @param idList
     */
    void deleteByIdList(List<Long> idList);

    /**
     * 新增
     *
     * @param routinePathologySampling
     * @return
     */
    Long insert(RoutinePathologySampling routinePathologySampling);

    /**
     * 动态新增
     *
     * @param routinePathologySampling
     * @return
     */
    Long insertSelective(RoutinePathologySampling routinePathologySampling);

    /**
     * 更改
     *
     * @param routinePathologySampling
     * @return
     */
    boolean update(RoutinePathologySampling routinePathologySampling);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(RoutinePathologySampling record);

    /**
     * 保存
     *
     * @param saveOrUpdateVo
     * @return
     */
    boolean save(RoutinePathologySamplingSaveOrUpdateVo saveOrUpdateVo);

    /**
     * 编辑
     *
     * @param saveOrUpdateVo
     * @return
     */
    boolean modify(RoutinePathologySamplingSaveOrUpdateVo saveOrUpdateVo);

    /**
     * 列表
     *
     * @param routinePathologySamplingSearchVo
     * @return
     */
    RoutinePathologySamplingVo selectOne(RoutinePathologySamplingSearchVo routinePathologySamplingSearchVo);

    /**
     * 总数
     *
     * @param routinePathologySamplingSearchVo
     * @return
     */
    Integer count(RoutinePathologySamplingSearchVo routinePathologySamplingSearchVo);

    /**
     * 列表
     *
     * @param routinePathologySamplingSearchVo
     * @return
     */
    List<RoutinePathologySamplingVo> selectList(RoutinePathologySamplingSearchVo routinePathologySamplingSearchVo);

    /**
     * 分页查询
     *
     * @param routinePathologySamplingSearchVo
     * @return
     */
    Page<RoutinePathologySamplingVo> selectPage(RoutinePathologySamplingSearchVo routinePathologySamplingSearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<RoutinePathologySampling> entities);

    /**
     * 动态删除，慎重用此方法！！
     *
     * @param routinePathologySamplingSearchVo
     * @return
     */
    void deleteByCondition(RoutinePathologySamplingSearchVo routinePathologySamplingSearchVo);
}